/*
 * Copyright (c) 2018-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

namespace TencentCloud.Lke.V20231130.Models
{
    using Newtonsoft.Json;
    using System.Collections.Generic;
    using TencentCloud.Common;

    public class AgentKnowledgeFilter : AbstractModel
    {
        
        /// <summary>
        /// 知识检索筛选方式; 0: 全部知识; 1:按文档和问答; 2: 按标签
        /// </summary>
        [JsonProperty("FilterType")]
        public ulong? FilterType{ get; set; }

        /// <summary>
        /// 文档和问答过滤器
        /// </summary>
        [JsonProperty("DocAndAnswer")]
        public AgentKnowledgeFilterDocAndAnswer DocAndAnswer{ get; set; }

        /// <summary>
        /// 标签过滤器
        /// </summary>
        [JsonProperty("Tag")]
        public AgentKnowledgeFilterTag Tag{ get; set; }

        /// <summary>
        /// 知识库列表
        /// </summary>
        [JsonProperty("KnowledgeList")]
        public AgentKnowledge[] KnowledgeList{ get; set; }

        /// <summary>
        /// 是否检索全部知识
        /// </summary>
        [JsonProperty("AllKnowledge")]
        public bool? AllKnowledge{ get; set; }


        /// <summary>
        /// For internal usage only. DO NOT USE IT.
        /// </summary>
        public override void ToMap(Dictionary<string, string> map, string prefix)
        {
            this.SetParamSimple(map, prefix + "FilterType", this.FilterType);
            this.SetParamObj(map, prefix + "DocAndAnswer.", this.DocAndAnswer);
            this.SetParamObj(map, prefix + "Tag.", this.Tag);
            this.SetParamArrayObj(map, prefix + "KnowledgeList.", this.KnowledgeList);
            this.SetParamSimple(map, prefix + "AllKnowledge", this.AllKnowledge);
        }
    }
}

